{% extends 'HerzultForumBundle::layout.html.twig' %}
{% block title %}Liste des sujets de {{ category.name }} - {{ parent() }}{% endblock %}
{% block content %}

<h1 class="title">Liste des sujets de "{{ category.name }}"</h1>

<div class="forum category_show">
    <div class="main topics">
        <h2>Messages de "{{ category.name }}"</h2>
        <a href="{{ forum_urlForCategoryAtomFeed(category) }}" title="Atom feed" class="feed atom">Atom feed</a>
        {% render 'HerzultForumBundle:Topic:list' with {'categorySlug': category.slug, 'pagerOptions': {'page': page, 'routeName': 'herzult_forum_category_show', 'routeParams': {'slug': category.slug}}} %}
    </div>
    <div class="side categories">
        <h2>Sujets du Forum</h2>
        {% render 'HerzultForumBundle:Category:list' %}
        <h2>Participate</h2>
        <p><a href="{{ path('herzult_forum_category_topic_new', {'slug': category.slug} ) }}">Create a new topic</a></p>
    </div>
</div>
{% endblock %}
